{% load i18n %}
<div class="actions">
  {% block actions %}

    {% comment %} Eric: custom action 1:注释原来样式 {% endcomment %}
    {% comment %}
    {% block actions-form %}
    {% for field in action_form %}{% if field.label %}<label>{{ field.label }} {% endif %}{{ field }}{% if field.label %}</label>{% endif %}{% endfor %}
    {% endblock %}
    {% block actions-submit %}
    <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
    {% endblock %}
    {% endcomment %}
    {% comment %} Eric: custom action 1:注释原来样式 {% endcomment %}

    {% block actions-counter %}
    {% if actions_selection_counter %}
        {% comment %} Eric: custom action 2:增加select-across {% endcomment %}
        <input type="hidden" name="select_across" value="0" class="select-across">
        {% comment %} Eric: custom action 2:增加select-across {% endcomment %}

        <span class="action-counter" data-actions-icnt="{{ cl.result_list|length }}">{{ selection_note }}</span>
        {% if cl.result_count != cl.result_list|length %}
        <span class="all">{{ selection_note_all }}</span>
        <span class="question">
            <a href="#" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
        </span>
        <span class="clear"><a href="#">{% trans "Clear selection" %}</a></span>
        {% endif %}
    {% endif %}
    {% endblock %}
  {% endblock %}
</div>
